<?php
#Template for Input users informations. 
$page = (isset($page)) ? $page : 'information';
include "inc/local_data.php";
$form = (isset($using_real_env) && $using_real_env) ? $form : ((isset($data[$page])) ? $data[$page] : array());
if (empty($form)) exit;

?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title><?php echo $form['title'];?></title>
		<?php include('inc/embed_top.php');?>
    </head>
    <body mlang="<?php echo $form['lang'];?>">
        <div id="uinfo" class="<?php echo $form['lang'];?> uinfo <?php echo $form['login_status'] ? 'logined' : ''?>" data-role="page" data-theme="f">
            <div class="ltit"><span class="logo">&nbsp;</span><span class="r">tvb.com</span></div>
            <h1>
                <?php echo $form['uinfo_title'];?>
                <?php
                    if (isset($form['is_logined']) && $form['is_logined']) {
                ?>
                        <a ajax="<?php echo $form['button']['cancel']['link'];?>" class="cancel logout" href="#" rel="external" data-role="button"><?php echo $form['button']['cancel']['value'];?></a>
                <?php
                    }
                ?>
            </h1>
            <?php 
    		include('inc/inc.step.php');
    		if (isset($form['login_status']) && $form['login_status']) {
    			include('inc/inc.uinfo.login.html');	
            }
            else{
                echo "<div id='uinfo_note'>".$form['public_note']."</div>";       
    			include('inc/inc.uinfo.nologin.html');
    		}
    		?>
		</div>
		<?php include('inc/embed_bottom.php');?>
    </body>
</html>
